$Server = $env:computername
$men = gwmi -computername $Server win32_OperatingSystem 
#$UsedMem =  "{0:0.0} %" -f ((($men.TotalVisibleMemorySize-$men.FreePhysicalMemory)/$men.TotalVisibleMemorySize)*100) 
$UsedMem =  "{0:0.0}" -f ((($men.TotalVisibleMemorySize-$men.FreePhysicalMemory)/$men.TotalVisibleMemorySize)*100) 
Write-Host "$UsedMem"